Skip to content

Conversation

Manit1
Copy link
Contributor

@Manit1 Manit1 commented May 21, 2019

Fixes #19

@abhishek97
Copy link
Contributor

@Manit1

  • Saving Tags on questions doesn't work.
  • We don't allow deleting tags

@Manit1
Copy link
Contributor Author

Manit1 commented May 23, 2019

Hey @abhishek97,
I fixed the issue with saving tags on questions and removed the delete route but still not able to figure how can I implement filtering with tags.

Basically I need to do something like

DB.questions.findOne({
    where: {
        id: 1,
    },
    include: {
        model: DB.tags,
        where: {
            name: {
                $iLike: '%something%'
            }
        },
        required: false
    }
}).then(o => console.log(o.tags))

to filter this but not able to think of how to integrate this in base controller

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Add tags support
2 participants